package br.org.etec.dotcao.mailer;

public class ContentReader extends Reader<String>{
	public ContentReader(String source) {
		super(source);
	}

	private StringBuilder content;
	
	@Override
	protected void process(String line) {
		if(content == null){
			content = new StringBuilder();
		}
		
		content.append(line).append("\n");
	}

	@Override
	public String get() {
		return String.valueOf(content);
	}
}
